/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.model;

import java.awt.Component;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.AbstractCellEditor;
import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.table.TableCellEditor;

public class OrderTableCellEditor extends AbstractCellEditor implements
		TableCellEditor ,MouseListener{
	private static final long serialVersionUID = 1L;
	private JButton printButton;
	public OrderTableCellEditor(){
		printButton=new JButton("");
		printButton.addMouseListener(this);
	}
	public Component getTableCellEditorComponent(JTable table, Object value,
			boolean isSelected, int row, int column) {
		if (value != null) {
			printButton.setText(value.toString());
		}
		return printButton;
	}
	
	@Override
	public Object getCellEditorValue() {
		return null;
	}
	
	@Override//点击
	public void mouseClicked(MouseEvent e) {
		
	}
	
	@Override//进入
	public void mouseEntered(MouseEvent e) {
		
	}
	
	@Override//退出
	public void mouseExited(MouseEvent e) {
		
	}
	
	@Override//压下
	public void mousePressed(MouseEvent arg0) {
		
	}
	@Override//放开
	public void mouseReleased(MouseEvent arg0) {
		
	}
}
